public class This01{
	 public static void main(String[] args) {
	 	Dog d1 = new Dog("灰灰",3);
	 	System.out.println("d1的hasCode()="+d1.hashCode());
	 	d1.info();
	 	
	 }
}

class Dog{

	String name;
	int age;

	public Dog(String name,int age){
		this.name = name;
		this.age = age;
	}

	public void info(){
		System.out.println(name+"\t"+age+"\t"+this.hashCode());
	}
}